package com.sy.service;

import com.sy.vo.DataVO;
import com.sy.vo.PhoneInfoVO;
import com.sy.vo.SpecsPackageVO;

import java.util.List;

/**
 * Created by 时宇 on 2021-08-05 15:17
 */
public interface PhoneService {
    DataVO findDataVO();//返回分类和手机的信息
    List<PhoneInfoVO> findPhoneInfoVOByCategoryType(Integer categoryType);//通过分类的Type查找手机详情
    SpecsPackageVO findSpecsByPhoneId(Integer phoneId); //通过手机ID找对应的规格
    void subStock(Integer specsId,Integer quantity);  //减库存
}
